package org.millioncall.yueyoga.admin.model;

import java.util.Date;

public class MemberModel {
	// --基本信息
	private String hybh; // --会员编号
	private String hykh; // --会员卡号
	private String hyxm; // --会员姓名
	private String hytx; // --会员头像
	private String lxdh; // --联系电话

	// --其他信息
	private String hyzt; // --会员状态
	private String hyzzt; // --会员子状态
	private String cplx; // --产品类型
	private Date kssj; // --开始时间--产品
	private Date jssj; // --结束时间--产品
	private String cpcs; // --会员产品剩余次数
	private String hjgw; // --会籍顾问
	private String fzr; // --负责人
	private String cpmc; // --产品名称

	private Integer prId;// ---产品剩余Id
	private Integer productId;// 产品id
	private boolean sfgq = false; // 是否过期

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getHybh() {
		return hybh;
	}

	public void setHybh(String hybh) {
		this.hybh = hybh;
	}

	public String getHykh() {
		return hykh;
	}

	public void setHykh(String hykh) {
		this.hykh = hykh;
	}

	public String getHyxm() {
		return hyxm;
	}

	public void setHyxm(String hyxm) {
		this.hyxm = hyxm;
	}

	public String getHytx() {
		return hytx;
	}

	public void setHytx(String hytx) {
		this.hytx = hytx;
	}

	public String getLxdh() {
		return lxdh;
	}

	public void setLxdh(String lxdh) {
		this.lxdh = lxdh;
	}

	public String getHyzt() {
		return hyzt;
	}

	public void setHyzt(String hyzt) {
		this.hyzt = hyzt;
	}

	public String getHyzzt() {
		return hyzzt;
	}

	public void setHyzzt(String hyzzt) {
		this.hyzzt = hyzzt;
	}

	public String getCplx() {
		return cplx;
	}

	public void setCplx(String cplx) {
		this.cplx = cplx;
	}

	public String getCpcs() {
		return cpcs;
	}

	public void setCpcs(String cpcs) {
		this.cpcs = cpcs;
	}

	public String getHjgw() {
		return hjgw;
	}

	public void setHjgw(String hjgw) {
		this.hjgw = hjgw;
	}

	public String getFzr() {
		return fzr;
	}

	public void setFzr(String fzr) {
		this.fzr = fzr;
	}

	public String getCpmc() {
		return cpmc;
	}

	public void setCpmc(String cpmc) {
		this.cpmc = cpmc;
	}

	public void setKssj(Date kssj) {
		this.kssj = kssj;
	}

	public void setJssj(Date jssj) {
		this.jssj = jssj;
	}

	public Date getKssj() {
		return kssj;
	}

	public Date getJssj() {
		return jssj;
	}

	public boolean isSfgq() {
		Date proDate = getJssj();
		Date date = new Date();

		if (proDate == null) {
			return sfgq;
		}

		if (date.getTime() > proDate.getTime()) {
			sfgq = true;
		}
		return sfgq;
	}

	public Integer getPrId() {
		return prId;
	}

	public void setPrId(Integer prId) {
		this.prId = prId;
	}
}
